package priv.mill.generator;
public class Column {
	/**
	 * 列类型
	 */
	private String columnType;
	/**
	 * 权限
	 */
	private String privileges;
	/**
	 * 默认值
	 */
	private String columnDefault;
	/**
	 * 是否允许为空
	 */
	private String isNullable;
	/**
	 * auto_increment
	 */
	private String extra;
	/**
	 * 注释
	 */
	private String columnComment;
	/**
	 * 索引
	 */
	private String columnKey;
	/**
	 * 列名
	 */
	private String columnName;
	private ColumnType type;
	public String getColumnType() {
		return columnType;
	}
	public void setColumnType(String columnType) {
		this.setType(new ColumnType(columnType));
		this.columnType =columnType;// new ColumnType(columnType);
	}
	public String getPrivileges() {
		return privileges;
	}
	public void setPrivileges(String privileges) {
		this.privileges = privileges;
	}
	public String getColumnDefault() {
		return columnDefault;
	}
	public void setColumnDefault(String columnDefault) {
		this.columnDefault = columnDefault;
	}
	public String getIsNullable() {
		return isNullable;
	}
	public void setIsNullable(String isNullable) {
		this.isNullable = isNullable;
	}
	public String getExtra() {
		return extra;
	}
	public void setExtra(String extra) {
		this.extra = extra;
	}
	public String getColumnComment() {
		return columnComment;
	}
	public void setColumnComment(String columnComment) {
		this.columnComment = columnComment;
	}
	public String getColumnKey() {
		return columnKey;
	}
	public void setColumnKey(String columnKey) {
		this.columnKey = columnKey;
	}
	public String getColumnName() {
		return columnName;
	}
	public void setColumnName(String columnName) {
		this.columnName = columnName;
	}
	@Override
	public String toString() {
		return "Column [columnType=" + columnType + ", privileges=" + privileges + ", columnDefault=" + columnDefault
				+ ", isNullable=" + isNullable + ", extra=" + extra + ", columnComment=" + columnComment
				+ ", columnKey=" + columnKey + ", columnName=" + columnName + "]";
	}
	public ColumnType getType() {
		return type;
	}
	public void setType(ColumnType type) {
		this.type = type;
	}
	
	
	
}
